package com.jx.gocomtask.webservice.entity.base;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jx.gocomtask.webservice.DTO.CallMeStatus;
import com.jx.gocomtask.webservice.DTO.CycleRun;
import com.jx.gocomtask.webservice.DTO.ScheduleStatus;
import com.jx.gocomtask.webservice.DTO.WorkStatus;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@ApiModel(value = "建立schedule时的数据")
public class ExtTaskTodoBase {
	private static org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(ExtTaskTodoBase.class);
	private String execerList="";
	@ApiModelProperty(value = "执行计划 0 轻任务 1 标准任务 2 晨会")
	private ScheduleStatus execPlan=ScheduleStatus.LIGTH;
	@ApiModelProperty(value = "是否提醒 0 不提醒 1 截止十五分钟前 2 截止一小时前 3 三小时前")
	private CallMeStatus isRemind=CallMeStatus.NO;
	@ApiModelProperty(value = "截止时间")
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")  
	private Date deadline;
	@ApiModelProperty(value = "是否重复 0 不重复 1 每天重复 2 每周重复")
	private CycleRun isRepeat=CycleRun.NO;
	@ApiModelProperty(value = "工作方式 0 无 1 多人合作 2 多人协作")
	private WorkStatus workMode=WorkStatus.NO;
	@ApiModelProperty(value = "标签 文本用,分割")
	private String label;


	public ScheduleStatus getExecPlan() {
		return execPlan;
	}

	public void setExecPlan(ScheduleStatus execPlan) {
		this.execPlan = execPlan;
	}

	public CallMeStatus getIsRemind() {
		return isRemind;
	}

	public void setIsRemind(CallMeStatus isRemind) {
		this.isRemind = isRemind;
	}
	//@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") 
	
	public Date getDeadline() {
		return deadline;
	}

	public void setDeadline(Date deadline) {
		this.deadline = deadline;
	}

	public CycleRun getIsRepeat() {
		return isRepeat;
	}

	public void setIsRepeat(CycleRun isRepeat) {
		this.isRepeat = isRepeat;
	}

	public WorkStatus getWorkMode() {
		return workMode;
	}

	public void setWorkMode(WorkStatus workMode) {
		this.workMode = workMode;
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public String getExecerList() {
		return execerList;
	}

	public void setExecerList(String execerList) {
		this.execerList = execerList;
	}

}
